package com.bbs.feign;

import com.bbs.pojo.Result;
import com.bbs.pojo.UserPrincipal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-service")
public interface UserFriendshipClient {
    /**
     * 判断好友关系
     */
    @GetMapping("/api/sys/friends/check/{userId1}/{userId2}")
    public Result<Object> checkFriendship(@PathVariable("userId1") String userId1, @PathVariable("userId2") String userId2);
}
